src_1=PipeClient.cpp
src_2=PipeServer.cpp
bin_1=pipe_client.exe
bin_2=pipe_server.exe

.PHONY:all
all:$(bin_1) $(bin_2)

$(bin_1):$(src_1)
	g++ $< -o $@ -std=c++11
$(bin_2):$(src_2)
	g++ $< -o $@ -std=c++11

.PHONY:clean run1 run2
clean:
	rm -f $(bin_1) $(bin_2)
run1:
	./$(bin_1)
run2:
	./$(bin_2)
